public function set mCommand(param1:String) : void
{
_Command = param1;
if(_Command == "proceed")
{
mSpeed = 0;
}
}
public function State_GOTO_Exit() : void
{
}
public function State_MOUSEOVER_Exit() : void
{
}
public function State_GOTO() : void
{
if(true)
{
if(mNode.hasTraction)
{
if(true)
{
var _loc1_:*;
mCurrentTarget = _loc1_ = GetTarget();
if(_loc1_ != null)
{
if(true)
{
SetState("TARGET");
if(true)
{
addr40:
if(mCommand == "proceed")
{
}
if(mDisposed)
{
§§goto(addr56);
}
else
{
return;
}
}
VehicleMove();
}
mCollide.Update();
}
}
}
§§goto(addr40);
}
addr56:
}
public function State_WAIT() : void
{
var _loc1_:*;
mCurrentTarget = _loc1_ = GetTarget();
if(_loc1_ != null)
{
SetState("TARGET");
return;
}
if(mStateCount < 0)
{
SetState("GOTO");
}
}
public function State_MOUSEOVER() : void
{
if(mStateCount < 0 && !mMouseOver)
{
SetState(mReturnStateID);
}
}
public function State_TARGET_Exit() : void
{
mPrimaryWeapon.mFire = false;
mPrimaryWeapon.mCurrentTarget = null;
}
public function get mLongName() : String
{
return "M1A1 Abrams Battle tank";
}
public function get mCommandProceed() : Boolean
{
return true;
}
public function State_TARGET() : void
{
if(true)
{
if(!ValidTarget(mCurrentTarget))
{
if(true)
{
mStateCount = SECONDS;
if(true)
{
SetState("WAIT");
if(true)
{
return;
}
addr41:
§§push(mPrimaryWeapon);
if(true)
{
§§pop().mFire = true;
addr46:
§§push(mPrimaryWeapon);
}
if(§§pop().mFired)
{
addr57:
mPrimaryWeapon.mFired = false;
addr59:
return;
addr56:
}
§§goto(addr59);
}
§§goto(addr46);
}
§§goto(addr56);
}
else
{
§§push(mPrimaryWeapon);
if(true)
{
if(§§pop().SetTarget(mCurrentTarget))
{
§§goto(addr41);
}
§§goto(addr46);
}
}
}
§§goto(addr57);
}
public function get mShortDesc() : String
{
return "The M1 Abrams is produced in the US. Equipped with a 105mm rifled tank gun, it will rip vehicles apart and reduce troops to shreds. Good against ground units!";